package com.itHsuSE.demo2;

public class Work2 {
    public static void main(String[] args) {

    }
}

class A02{
    public int find(String[] arr,String str){
        for (int i = 0; i < arr.length; i++) {
            if(str.equals(arr[i])){
                return i;
            }
        }
        return -1;
    }
}